//
//  RFCSNValidator.h
//  HPShellTest
//
//  Created by marco on 14/12/19.
//  Copyright (c) 2014年 marco. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSNetLib.h"

#define LocationErrMsg  @"定位失败"
#define LocationErrMsg2  @"请打开地理位置服务"


@interface RFCSNValidatorController : NSObject<NetCallBackDelegate>
{
@private
    void (^complete)(BOOL, NSString*);
    BOOL _tip;
    BOOL _networkUnAvailable;
}
@property (nonatomic) BOOL running;
@property (retain, nonatomic, readonly) NSString * location;
@property (retain, nonatomic, readonly) NSString * address;
@property (retain, nonatomic, readonly) NSDate * locationDate;

+(instancetype)sharedInstance;
-(void)validateCSNComplete:(void(^)(BOOL, NSString* errInfo))block
                   autoTip:(BOOL)tip;
-(void)clearData;


//+ (void)validateCSNAndExcuteBlock:(SwiperComplete)block autoTip:(BOOL)tip;
//+ (void)checkCSNStatus:(SwiperComplete)block autoTip:(BOOL)tip;
//+ (BOOL)isRunning;
//+ (void)bindCSN:(NSString*)csn;
//+ (NSString *)getLocation;
//+ (NSString *)getAddress;
//+ (void)clearData;

@end
